package cn.mntool.fastcode.generate.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.DataSource;

/**
 * describe: jdbc模板配置
 *
 * @author lianying
 * @date 2020/03/08
 */
@Configuration
public class JdbcTempConfiguration {
    @Autowired
    private DataSource dataSource;

    public JdbcTemplate jdbcTemplate() {
        return new JdbcTemplate(dataSource);
    }
}
